package com.jari.lg.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ParkingCarTypeCostHisEntityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ParkingCarTypeCostHisEntityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andParkingidIsNull() {
            addCriterion("parkingId is null");
            return (Criteria) this;
        }

        public Criteria andParkingidIsNotNull() {
            addCriterion("parkingId is not null");
            return (Criteria) this;
        }

        public Criteria andParkingidEqualTo(Long value) {
            addCriterion("parkingId =", value, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidNotEqualTo(Long value) {
            addCriterion("parkingId <>", value, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidGreaterThan(Long value) {
            addCriterion("parkingId >", value, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidGreaterThanOrEqualTo(Long value) {
            addCriterion("parkingId >=", value, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidLessThan(Long value) {
            addCriterion("parkingId <", value, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidLessThanOrEqualTo(Long value) {
            addCriterion("parkingId <=", value, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidIn(List<Long> values) {
            addCriterion("parkingId in", values, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidNotIn(List<Long> values) {
            addCriterion("parkingId not in", values, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidBetween(Long value1, Long value2) {
            addCriterion("parkingId between", value1, value2, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingidNotBetween(Long value1, Long value2) {
            addCriterion("parkingId not between", value1, value2, "parkingid");
            return (Criteria) this;
        }

        public Criteria andParkingnameIsNull() {
            addCriterion("parkingName is null");
            return (Criteria) this;
        }

        public Criteria andParkingnameIsNotNull() {
            addCriterion("parkingName is not null");
            return (Criteria) this;
        }

        public Criteria andParkingnameEqualTo(String value) {
            addCriterion("parkingName =", value, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameNotEqualTo(String value) {
            addCriterion("parkingName <>", value, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameGreaterThan(String value) {
            addCriterion("parkingName >", value, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameGreaterThanOrEqualTo(String value) {
            addCriterion("parkingName >=", value, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameLessThan(String value) {
            addCriterion("parkingName <", value, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameLessThanOrEqualTo(String value) {
            addCriterion("parkingName <=", value, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameLike(String value) {
            addCriterion("parkingName like", value, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameNotLike(String value) {
            addCriterion("parkingName not like", value, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameIn(List<String> values) {
            addCriterion("parkingName in", values, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameNotIn(List<String> values) {
            addCriterion("parkingName not in", values, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameBetween(String value1, String value2) {
            addCriterion("parkingName between", value1, value2, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParkingnameNotBetween(String value1, String value2) {
            addCriterion("parkingName not between", value1, value2, "parkingname");
            return (Criteria) this;
        }

        public Criteria andParktypeIsNull() {
            addCriterion("parkType is null");
            return (Criteria) this;
        }

        public Criteria andParktypeIsNotNull() {
            addCriterion("parkType is not null");
            return (Criteria) this;
        }

        public Criteria andParktypeEqualTo(String value) {
            addCriterion("parkType =", value, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeNotEqualTo(String value) {
            addCriterion("parkType <>", value, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeGreaterThan(String value) {
            addCriterion("parkType >", value, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeGreaterThanOrEqualTo(String value) {
            addCriterion("parkType >=", value, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeLessThan(String value) {
            addCriterion("parkType <", value, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeLessThanOrEqualTo(String value) {
            addCriterion("parkType <=", value, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeLike(String value) {
            addCriterion("parkType like", value, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeNotLike(String value) {
            addCriterion("parkType not like", value, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeIn(List<String> values) {
            addCriterion("parkType in", values, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeNotIn(List<String> values) {
            addCriterion("parkType not in", values, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeBetween(String value1, String value2) {
            addCriterion("parkType between", value1, value2, "parktype");
            return (Criteria) this;
        }

        public Criteria andParktypeNotBetween(String value1, String value2) {
            addCriterion("parkType not between", value1, value2, "parktype");
            return (Criteria) this;
        }

        public Criteria andCostIsNull() {
            addCriterion("cost is null");
            return (Criteria) this;
        }

        public Criteria andCostIsNotNull() {
            addCriterion("cost is not null");
            return (Criteria) this;
        }

        public Criteria andCostEqualTo(Long value) {
            addCriterion("cost =", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotEqualTo(Long value) {
            addCriterion("cost <>", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostGreaterThan(Long value) {
            addCriterion("cost >", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostGreaterThanOrEqualTo(Long value) {
            addCriterion("cost >=", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostLessThan(Long value) {
            addCriterion("cost <", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostLessThanOrEqualTo(Long value) {
            addCriterion("cost <=", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostIn(List<Long> values) {
            addCriterion("cost in", values, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotIn(List<Long> values) {
            addCriterion("cost not in", values, "cost");
            return (Criteria) this;
        }

        public Criteria andCostBetween(Long value1, Long value2) {
            addCriterion("cost between", value1, value2, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotBetween(Long value1, Long value2) {
            addCriterion("cost not between", value1, value2, "cost");
            return (Criteria) this;
        }

        public Criteria andDatetimeIsNull() {
            addCriterion("datetime is null");
            return (Criteria) this;
        }

        public Criteria andDatetimeIsNotNull() {
            addCriterion("datetime is not null");
            return (Criteria) this;
        }

        public Criteria andDatetimeEqualTo(Date value) {
            addCriterion("datetime =", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeNotEqualTo(Date value) {
            addCriterion("datetime <>", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeGreaterThan(Date value) {
            addCriterion("datetime >", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("datetime >=", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeLessThan(Date value) {
            addCriterion("datetime <", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("datetime <=", value, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeIn(List<Date> values) {
            addCriterion("datetime in", values, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeNotIn(List<Date> values) {
            addCriterion("datetime not in", values, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeBetween(Date value1, Date value2) {
            addCriterion("datetime between", value1, value2, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("datetime not between", value1, value2, "datetime");
            return (Criteria) this;
        }

        public Criteria andDatastatusIsNull() {
            addCriterion("dataStatus is null");
            return (Criteria) this;
        }

        public Criteria andDatastatusIsNotNull() {
            addCriterion("dataStatus is not null");
            return (Criteria) this;
        }

        public Criteria andDatastatusEqualTo(String value) {
            addCriterion("dataStatus =", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotEqualTo(String value) {
            addCriterion("dataStatus <>", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusGreaterThan(String value) {
            addCriterion("dataStatus >", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusGreaterThanOrEqualTo(String value) {
            addCriterion("dataStatus >=", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusLessThan(String value) {
            addCriterion("dataStatus <", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusLessThanOrEqualTo(String value) {
            addCriterion("dataStatus <=", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusLike(String value) {
            addCriterion("dataStatus like", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotLike(String value) {
            addCriterion("dataStatus not like", value, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusIn(List<String> values) {
            addCriterion("dataStatus in", values, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotIn(List<String> values) {
            addCriterion("dataStatus not in", values, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusBetween(String value1, String value2) {
            addCriterion("dataStatus between", value1, value2, "datastatus");
            return (Criteria) this;
        }

        public Criteria andDatastatusNotBetween(String value1, String value2) {
            addCriterion("dataStatus not between", value1, value2, "datastatus");
            return (Criteria) this;
        }

        public Criteria andGmtcreateIsNull() {
            addCriterion("gmtCreate is null");
            return (Criteria) this;
        }

        public Criteria andGmtcreateIsNotNull() {
            addCriterion("gmtCreate is not null");
            return (Criteria) this;
        }

        public Criteria andGmtcreateEqualTo(Date value) {
            addCriterion("gmtCreate =", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateNotEqualTo(Date value) {
            addCriterion("gmtCreate <>", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateGreaterThan(Date value) {
            addCriterion("gmtCreate >", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateGreaterThanOrEqualTo(Date value) {
            addCriterion("gmtCreate >=", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateLessThan(Date value) {
            addCriterion("gmtCreate <", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateLessThanOrEqualTo(Date value) {
            addCriterion("gmtCreate <=", value, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateIn(List<Date> values) {
            addCriterion("gmtCreate in", values, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateNotIn(List<Date> values) {
            addCriterion("gmtCreate not in", values, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateBetween(Date value1, Date value2) {
            addCriterion("gmtCreate between", value1, value2, "gmtcreate");
            return (Criteria) this;
        }

        public Criteria andGmtcreateNotBetween(Date value1, Date value2) {
            addCriterion("gmtCreate not between", value1, value2, "gmtcreate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}